using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using CMS.Core.DataInterfaces;
using CMS.Core.Domain;
using CMS.Data;
using CMS.Presenters;
using AjaxPro;

namespace CMS.Web.CompDenu
{
    public partial class SelectPhongBan : System.Web.UI.Page
    {
        IList<PhongBan> pbList;

        public String ObjId = "";
        public String HidId = "";

        public SelectPhongBan()
        {
        }
       protected void Page_Load(object sender, EventArgs e)
        {
            this.RaiseClientEvent();

            this.ObjId = this.Request.QueryString["objId"];
            this.HidId = this.Request.QueryString["hidId"];

            if (!this.IsPostBack)
            {
                this.lstPhongBan.DataSource = PhongBanDao.Instance.GetAll();
                this.lstPhongBan.DataBind();
            }
        }
        protected void RaiseClientEvent()
        {
            Utility.RegisterTypeForAjax(typeof(CMS.Web.CompDenu.SelectPhongBan));
            lstPhongBan.Attributes.Add("ondblclick ", "moveRight()");
            lstPhongBan.Attributes.Add("onkeypress ", "handleEnterKey(event)");
            lstPBChon.Attributes.Add("ondblclick ", "moveLeft()");
        }
    }
}
